for i in range(1000):
    a = i // 100
    b = (i - a * 100) // 10
    c = (i - a * 100 - b * 10)

    if i == pow(a, 3) + pow(b, 3) + pow(c, 3):  # (a * a * a + b * b * b + c * c * c)
        print(i)



